package fox.framework.rpc.client.node.event;

import fox.framework.rpc.client.node.RpcNode;
import fox.framework.rpc.context.event.RpcEvent;

/**
 * @author cuichao
 * @Description: NodeChannelCloseEvent
 * @Date: create in 2021/2/12 17:25
 */
public class NodeChannelCloseEvent implements RpcEvent {


    private RpcNode node;

    public NodeChannelCloseEvent(RpcNode node) {
        this.node = node;
    }

    @Override
    public Object getSource() {
        return node;
    }


    public RpcNode getNode(){
        return node;
    }
}
